package com.my.study.commonfallback;

import com.my.study.entity.vo.ResponseVO;
import lombok.extern.slf4j.Slf4j;

/**
 *
 * sentinel降级
 */
@Slf4j
public class SentinelFallback {

    public ResponseVO<Object> createFallback(Throwable throwable) {
        log.info("接口调用失败,执行服务降级" + throwable.getMessage());
        return ResponseVO.fail("接口执行失败!");
    }
}
